/*
 * @Author: 郑灶欣
 * @Date: 2023-02-06 10:46:11
 * @LastEditors: 郑灶欣
 * @LastEditTime: 2023-02-06 11:02:01
 * @FilePath: \office\src\router\index.ts
 * @Description:路由
 */
import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/index",//首页
    component: () => import("@/views/home/index.vue"),
  },
];
// 导入生成的路由数据
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
export default router;
